package model.command;
import controller.KeyListeners.KeyListenerSet;
import model.playable.Playable;
/**
 *
 * @author joseph
 */
public class Load extends PlayableCommand{
    public Load(Playable playable){
        super(playable);
    }
    @Override
    public void attachToListener() {
       getListeners().attachToEnterListener(clone());
    }
    @Override
    public Load clone() {
        return new Load(getPlayable());
    }
    @Override
    public void executeCommand() {
        ((Loadable)getPlayable()).load();
    }
    @Override
    public String toString(){
        return "Load";
    }
}